package org.abc.fund.entity.strategy;

import jakarta.persistence.Column;
import jakarta.persistence.Embeddable;
import java.math.BigDecimal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Embeddable
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AdjustmentDetail {
    @Column(nullable = false)
    private String fundCode;

    /** 调整前权重, `0` 代表新增 */
    @Column(nullable = false)
    private BigDecimal fromWeight;

    /** 调整后权重, `0` 代表刪除 */
    @Column(nullable = false)
    private BigDecimal toWeight;
}
